-- GENERATED SPELL FOR [Sunfury Geologist] --


function spell0_19779(pUnit, Event) --@Puncture Armor,n/a--
pUnit:FullCastSpellOnTarget(35918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19779', 30307, 1)
end

function spell1_19779(pUnit, Event) --@Throw Rock,n/a--
pUnit:FullCastSpellOnTarget(36645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19779', 2000, 1)
end

function Sorts_19779(pUnit, Event)
local choix_sorts_19779 = math.random(0, 1)
if choix_sorts_19779 == 0 then
pUnit:RegisterEvent('spell0_19779', 1, 1)
end
if choix_sorts_19779 == 1 then
pUnit:RegisterEvent('spell1_19779', 1, 1)
end
end

function mob19779_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19779', math.random(1500, 3000), 1)
end

function mob19779_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19779_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19779_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19779, 1, 'mob19779_Action')
RegisterUnitEvent(19779, 2, 'mob19779_Leave')
RegisterUnitEvent(19779, 3, 'mob19779_Kill')
RegisterUnitEvent(19779, 4, 'mob19779_Die')
